package com.kx.bean;

public class Student1 {
    private String name1;
    private Integer age1;
    //声明一个引用类型
    private School school1;

    public Student1(String name1, Integer age1, School school1) {
        System.out.println("Student带参函数构造方法");
        this.name1 = name1;
        this.age1 = age1;
        this.school1 = school1;
    }

    @Override
    public String toString() {
        return "Student1{" +
                "name='" + name1 + '\'' +
                ", age=" + age1 +
                ", school=" + school1 +
                '}';
    }
}
